﻿namespace Admin.NET.Application.Service;
public class BasPrintAddInput
{
    // "分组: 分类: daying打印，yewu业务逻辑，yunwei运维SQL"
    public string category { get; set; } = "";

    // "打印代码"
    public string code { get; set; } = "";

    // "标题"
    public string title { get; set; } = "";

    // "模板"
    public string template { get; set; } = "";

    // "主SQL"
    public string sql1 { get; set; } = "";

    // "明细SQL"
    public string sql2 { get; set; } = "";

    // "明细SQL"
    public string sql3 { get; set; } = "";

    // "明细SQL"
    public string sql4 { get; set; } = "";

    // "明细SQL"
    public string sql5 { get; set; } = "";

    // "备注"
    public string remark { get; set; } = "";
}

public class BasPrintUpdateInput : BasPrintAddInput
{
    public long Id { get; set; }
}


public class BasPrintGetDataAndTemplateInput
{
    public string Code { get; set; }


    public string P1 { get; set; }


    public string P2 { get; set; }


    public string P3 { get; set; }
}


public class BasPrintGetDataAndTemplateOutput
{
    public long Id { get; set; }

    // 打印模板
    public string Template { get; set; }

    // 打印数据源
    public BasPrintDataOutput Data { get; set; }
}

// 打印数据源
public class BasPrintDataOutput
{
    public List<dynamic> Columns { get; set; } = new List<dynamic>();

    public List<dynamic> T1 { get; set; } = new List<dynamic>();

    public List<dynamic> T2 { get; set; } = new List<dynamic>();

    public List<dynamic> T3 { get; set; } = new List<dynamic>();

    public List<dynamic> T4 { get; set; } = new List<dynamic>();

    public List<dynamic> T5 { get; set; } = new List<dynamic>();
}

public class BasPrintDraftQueryInput
{
    public long Id { get; set; }


    public string P1 { get; set; }


    public string P2 { get; set; }


    public string P3 { get; set; }
}